package com.sh.线程安全相关.lock锁;

/**
 * @Auther: sh
 * @Version 1.0
 * @Description:
 */
public class Test {
    public static void main(String[] args) {

        MyThread t1 = new MyThread();
        MyThread t2 = new MyThread();
        MyThread t3 = new MyThread();
        t1.setName("窗口1");
        t2.setName("窗口2");
        t3.setName("窗口3");
        t1.start();
        t2.start();
        t3.start();
    }
}

